<?php
$user = $this->Admin_model->get_one('users',array('id'=>$this->session->userdata('user')->id));
$point = $user->curent;
?>
<div class="conten_chatbox clearfix">
    <div class="chatbox left">
        <div class="contentchat">
            <div class="hienthichat">
                <?php $this->load->controller('chatbox/ndchatbox');?>
            </div>
        </div>
        <div class="inputchat">
            <input class="nd"  type="text" name="ndchat"/>
            <input class="gui" type="submit" value="Send" />
        </div>
    </div>
    
    <div class="topcredit right">
        <?php $this->load->controller('chatbox/topcredit');?>
    </div>
    
</div>


<style>
.conten_chatbox{margin-top:20px;border:1px solid #cacaca;width:940px;}
.chatbox{
    background:#22ff0b;
    height:500px;overflow:scroll;
    width:500px;padding:10px;
}
.hienthichat{height:380px;overflow-y:scroll;padding:10px;}
.contentchat{height:400px;background:#fff;margin-bottom: 10px;}
.inputchat{height:80px;}
.inputchat .nd{width:390px;height:40px;}
.topcredit{height:500px;overflow:scroll;width:400px;padding:10px;}
</style>